#ifndef __switch_bsp_H_
#define __switch_bsp_H_


#define SWITCH_F_DARK	SWITCH_1
#define SWITCH_F_LIGHT	SWITCH_2
#define SWITCH_PUL_EN	SWITCH_3
#define SWITCH_DIR_EN	SWITCH_4


#define STATUS_LED      SWITCH_5



void switch_init(void);
void switch_off(E_SWITCH index);
void switch_on(E_SWITCH index);
u8 switch_status(E_SWITCH index);
void switch_pwm(u8 index,u16 OnMs, u16 OffMs);


#define led_off(index)				switch_off(index)
#define led_on(index)				switch_on(index)
#define led_pwm(index, onMs, offMs) switch_pwm(index, onMs, offMs)



#endif

